package cn.e4j.modular.system.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备组模块-用户关联表
 * </p>
 *
 * @author shixc
 * @since 2019-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("SYS_USER_DEVICE")
public class SysUserDevice extends PO<SysUserDevice> {

    private static final long serialVersionUID = 1L;

    /**
     * 流水号
     */
    @TableField(fill = FieldFill.INSERT)
    @TableId(value = "ID", type = IdType.INPUT)
    private String ID;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime CREATE_TIME;

    /**
     * 创建人ID
     */
    @TableField(fill = FieldFill.INSERT)
    private String CREATE_BY;

    /**
     * 用户流水号
     */
    private String USER_ID;

    /**
     * 设备组编码
     */
    private String DEVICE_ID;



    @Override
    protected Serializable pkVal() {
        return this.ID;
    }

}
